package com.sny.constants;

/**
 * @Author:yangxupeng
 * @Description:
 * @Date: 2020/7/31 9:41 上午
 * @Modified:
 */
public class FileConstants {
    /**
     * 上传成功
     */
    public final static String SUCCESS = "003000";
    /**
     * 上传失败
     */
    public final static String FAIL = "003999";
    /**
     * 信息存储失败
     */
    public final static String STORAGEFAIL = "003998";
    /**
     * 上传文件不能为空
     */
    public final static String FILENOTNULL = "003997";
    /**
     * 图片裁剪成功
     */
    public final static String IMAGESCUTSUCCESS = "003001";
    /**
     * 图片裁剪失败
     */
    public final static String IMAGESCUTFALL = "003996";
    /**
     * 删除文件成功
     */
    public final static String DELSUCCESS = "003002";
    /**
     * 文件不存在
     */
    public final static String DELFAIL = "003995";
    /**
     * 上传文件不能大于5M
     */
    public final static String FILESIZE = "003994";
    /**
     * 上传文件不能包含特殊字符
     */
    public final static String FAILFILENAME = "003992";
    /**
     * 上传文件大小 修改为205M
     */
    public final static Long IMGSIZE = 10485760L * 205;
    /**
     * 上传视频大小
     */
    public final static Long VIDEOIZE = 5242880L * 100;


    /**
     * 上传文件不能大于500M
     */
    public final static String VIDEO_ERROR_CODE = "0039910";

    public final static String INEXISTENCE = "003993";


    /**
     * 保存文件所在路径的key，eg.FILE_MD5:1243jkalsjflkwaejklgjawe
     */
    public static final String FILE_MD5_KEY = "FILE_MD5:";
    /**
     * 保存上传文件的状态
     */
    public static final String FILE_UPLOAD_STATUS = "FILE_UPLOAD_STATUS";

    public static final String TYPE_FOLDER = "folder";

    public static final String MODE_ALL = "-rwx rwx rwx(0777)";

    public static final String FILE_SEPARATORCHAR = "/";

    public static final String FILE_ATOMIC_STATUS = "FILE_ATOMIC_STATUS:";

    public static final long EXPIRE = 10;

    public static final String ROOT_PATH_ID = "1";

    public static final String MP4_TYPE = "mp4";
}
